home *** CD-ROM | disk | FTP | other *** search
- Form1
- PolyGone
- Form1
- Form_Click
- Shuffle
- DrawPolyQ
- Largest
- Smallest
- ScrNuma
- ScrWidthR
- ScrHeight
- SCREENq
- TwoPi
- Ratio
- Lupe1
- OnScreen
- INKEY
- ColrW
- PrevColr*
- LoopEndt
- COLOR
- SLEEP
- InnerLoop
- Form1
- fgcolr
- ForeColor
- Height
- Width
- Form_Resize
- BackColor
- Drawing
- @ Form_Load>
- Orderj
- LastM
- LastJ~
- CLSFlag
- State
- ReScale
- NomSize
- ErasePoly
- Bigger
- UnLoad
- Outer
- Form_LinkOpen
- Cancel
- Form_Paint
- Form_Unload
- WindowState
- ReColor
- PolyGone was written by Jim Mack, CIS 76630,20121
- It has no purpose other than to entertain, and is
- not copyrighted. If you modify this code, please
- send me a copy so I can have some more fun too!
- Start reading the code at Form_Load to follow the
- flow. The hierarchy is:
- Loadc
- : ReScale
- : Outer
- : DrawPoly
- : Shuffle
- Form_Click
- Clicking on the form cause a Clear next passc
- DrawPoly
- Draw the vertex connections alternately
- clockwise and counterclockwise, on ai
- random basis.
- about half the time
- Shuffle
- Randomize the order in which the vertices are accessed.
- IAry() is an array containing vertex numbers.
- Self-fill the array: I(9)=9, e.g.
- Most of the time (about 90%), randomize the order
- in which the points will be accessed, but once
- in a while, let it happen in order.
- Form_Resize
- Form_Load
- Aspect ratio, =1 for "square" pixels
- choose appropriate sizesi
- Now just go do work forever
- ReScale
- if minimized, restrict range
- Outer
- This is where the action takes place.
- number currently on screenc
- if another process wants to CLS
- Select a polygon "order" based on the current
- lowest and highest allowable values. See
- "ReScale" for how Lowest and Highest are sett
- Choose a random color some distance from thet
- current color
- Don't allow BackColor unless the screen
- has at least 10 polygons already on itn
- Every so often (maybe 10% of the time)t
- erase the images by drawing a special
- polygon (of order "ErasePoly") in BackColor
- But only do that if there are at least
- 10 polygons already drawn. Otherwise
- just draw a new polygon over the last.
- Most of the time (roughly 93%), chooseo
- a new size and position for the newesto
- polygon.z
- 333333
- keep the center
- on the screen
- count this onen
- Now draw the polygoni
- If this was an ErasePoly, clear its rubbleh
- Form_Unload
-